from django.urls import path,re_path

from blog import views

urlpatterns = [
    path(r'', views.IndexView.as_view()),
    re_path(r'^page/(\d+)$', views.IndexView.as_view()),
    re_path(r'^post/(\d+)$', views.DetailView.as_view()),
    re_path(r'^tag/(?P<tag>.*)/', views.tag_archive),
    re_path(r'^archive/(?P<year>\d+)/(?P<month>\d+)/', views.date_archive),
    re_path(r'^archive/', views.date_archive),
]